package com.gang.feign;

import com.gang.pojo.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "USER")
public interface UserFeign {

    @PostMapping("/user/adddid/{did}/{username}")
    public CommonResult addUserDid(@PathVariable("did")String did, @PathVariable("username")String username);


    @PostMapping("/user/addaddress/{username}/{address}")
    public CommonResult addaddress(@PathVariable("username") String username,@PathVariable("address")String address);

    @RequestMapping("/user/getdid/{username}")
    public CommonResult getUserDid(@PathVariable("username")String username);
}
